package com.bank.backend.boot.base.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户信息
 * @TableName account
 */
@TableName(value ="account")
@Data
public class Account implements Serializable {
    /**
     * 账户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 账户号码
     */
    @TableField(value = "account_number")
    private String accountNumber;

    /**
     * 账户类型
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "balance")
    private Double balance;

    /**
     * 交易金额限制
     */
    @TableField(value = "amount_limit")
    private Long amountLimit;

    /**
     * 账户状态0-正常，1-冻结，2-销户，3-可疑账户，4-危险账户，5-审核中
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}